<?php


namespace app\decorator;


class Json implements \myphp\Decorator
{
    protected $obj;

    // 传入
    public function beforeAction($obj)
    {
        $this->obj = $obj;
        var_dump(123);
        die;
    }

    public function afterAction($data)
    {
        // TODO: Implement afterAction() method.
    }

}